<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>
<body>
	<div class="pager">
		<div>
			您共搜索到 ${scope.pager.recordCount} 个结果，共 ${scope.pager.pageCount} 页，
			您正在第 <b>${scope.pager.pageNumber}</b> 页。
		</div>
		<a pn="1" href="javascript:void(0)">[&lt;&lt; 首页 ]</a>
		<c:choose>
			<c:when test="${scope.pager.pageNumber<=1}">
				<a class="disabled" href="javascript:void(0)">&lt;上一页</a>
			</c:when>
			<c:otherwise>
				<a pn="${scope.pager.pageNumber-1}" href="javascript:void(0)">&lt;上一页</a>
			</c:otherwise>
		</c:choose>

		<c:forEach begin="${scope.beginPn}" end="${scope.endPn}" var="index">
			<c:choose>
				<c:when test="${index == scope.pager.pageNumber}">
					<b>[${index}]</b>
				</c:when>
				<c:otherwise>
					<a pn="${index}" href="javascript:void(0)">[${index}]</a>
				</c:otherwise>
			</c:choose>			
		</c:forEach>
		
		<c:choose>
			<c:when test="${scope.pager.pageCount <= scope.pager.pageNumber}">
				<a class="disabled" href="javascript:void(0)">下一页&gt;</a>
			</c:when>
			<c:otherwise>
				<a pn="${scope.pager.pageNumber+1}" href="javascript:void(0)">下一页&gt;</a>
			</c:otherwise>
		</c:choose>
		<a pn="${scope.pager.pageCount}" href="javascript:void(0)">[ 末页 &gt;&gt;]</a>
	</div>
</body>
</html>